<?php

namespace Application\Model;

use Zend\Form\Annotation;

class Contact {
	
	public $idContact;
	public $mailContact;
	public $textContact;
	public $dateContact;
	
	public function exchangeArray($data)
	{
		$this->idContact = (isset($data['idContact'])) ? $data['idContact'] : null;
		$this->mailContact = (isset($data['mailContact'])) ? $data['mailContact'] : null;
		$this->textContact = (isset($data['textContact'])) ? $data['textContact'] : null;
		$this->dateContact = (isset($data['dateContact'])) ? $data['dateContact'] : date('Y-m-d H:i:s');
	}
}
